package com.ctgu.tengyun.bean.errorcode;

import com.ctgu.tengyun.exception.ErrorCodeInterface;

/**
 * Created by liaoweizhi on 2019/7/21.
 */
public enum SaleOrderErrorCode implements ErrorCodeInterface {

    spare_part_stock_not_enough(3001, "spare part stock not enough, total:", "零件库存不足"),
    ;

    private Integer errorCode;

    private String msg;

    private String hintMessage;

    SaleOrderErrorCode(Integer errorCode, String msg, String hintMessage){
        this.errorCode = errorCode;
        this.msg = msg;
        this.hintMessage = hintMessage;
    }

    @Override
    public Integer getErrorCode() {
        return errorCode;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    @Override
    public String getHintMessage() {
        return hintMessage;
    }
}
